import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../pages/home'
import Bar from '../pages/bar'
import Cloud from '../pages/cloud'
import Competition from '../pages/competition'
import Developer from '../pages/developer'
// import barmain from '../pages/bar/main'
import all from '../pages/developer/All'
Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    redirect: '/home'
  },
  {
    path: '/home',
    component: Home
  },
  {
    path: '/bar',
    component: Bar
  },
  {
    path: '/cloud',
    component: Cloud
  },
  {
    path: '/competition',
    component: Competition
  },
  {
    path: '/developer',
    component: Developer
  },
  {
    path: '/developer/all/:id',
    component: all
  }

]

const router = new VueRouter({
  routes
})

export default router
